package com.itany.conf;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class TestMvcConfig implements WebMvcConfigurer {


    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/showlist").setViewName("userlist");
        registry.addViewController("/showLogin").setViewName("login");
        registry.addViewController("/showRole").setViewName("role");
        registry.addViewController("/showSupplierExamine").setViewName("supplier_examine");
        registry.addViewController("/showSupplierPlatform").setViewName("supplier_platform");
        registry.addViewController("/showPermission").setViewName("permission");
        registry.addViewController("/showBook").setViewName("booklist");
        registry.addViewController("/showManager").setViewName("manager");
        registry.addViewController("/showIndex").setViewName("index");
    }
}
